package cn.gailvlun.gll.util;

import com.tencent.mm.opensdk.modelmsg.SendAuth;



public class WechatEvent {
    public int type;
    public int errCode;
    public String errStr;
    public String code;
    public String state;

    public WechatEvent(int type, int errCode, String errStr, String code, String state) {
        this.type = type;
        this.errCode = errCode;
        this.errStr = errStr;
        this.code = code;
        this.state = state;
    }

    public static WechatEvent transform(SendAuth.Resp resp) {
        return new WechatEvent(resp.getType(), resp.errCode, resp.errStr, resp.code, resp.state);
    }
}
